package com.southwind.springboottest.studykotlin.s2

// TODO 23.Kotlin语言的匿名函数学习

fun main() {
    val len = "Derry".count()
    println(len)
    val len2 = "Derry".count {
        it == 'r'
    }
    println(len2)
}